﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="StatusManagement.ascx.cs"
    Inherits="Admin_UserControls_StatusManagement" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .menuleft_small
    {
        width: 225px;
    }
    .menuleft_lagre
    {
        width: 300px;
    }
    .errorMessage
    {
        color: Red;
    }
    .button
    {
        width: 85px;
    }
</style>
<script type="text/javascript">
</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div>
    <asp:Panel ID="Panel1" runat="server">
        <div class="title">
            <h5>
                QUẢN LÝ STATUS
            </h5>
        </div>
        <div class="table">
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" GridLines="None"
                AllowPaging="True" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_iTemcommand"
                AutoGenerateColumns="False" Skin="Office2007">
                <MasterTableView NoMasterRecordsText="Không có kết quả">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="status_id" DataType="System.Int32" HeaderText="Status"
                            UniqueName="status_id" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="username" HeaderText="Tên tài khoản" UniqueName="username">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="text" HeaderText="Nội dung" UniqueName="text">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="created_date" HeaderText="Ngày viết" UniqueName="created_date"
                            DataType="System.DateTime" DataFormatString="{0:dd/MM/yyyy}">
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn Text="Xóa" UniqueName="Xoa" CommandName="Xoa" ConfirmText="Bạn có chắc chắn muốn xóa?"
                            ImageUrl="~/Files/images/delete.gif" HeaderImageUrl="~/Files/images/delete.gif">
                        </telerik:GridButtonColumn>
                        <telerik:GridButtonColumn Text="Quản lý lời bình" UniqueName="CommentManager" CommandName="CommentManager"
                            ImageUrl="~/Files/images/view.gif" HeaderImageUrl="~/Files/images/view.gif">
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
            </telerik:RadGrid>
        </div>
    </asp:Panel>
</div>
<div>
    <asp:Panel ID="Panel2" runat="server">
        <div class="title">
            <h5>
                QUẢN LÝ LỜI BÌNH
            </h5>
        </div>
        <div class="table">
            <table style="width: 100%; margin-top: 25px;">
                <tr>
                    <td style="width: 20%">
                        Người viết status:
                    </td>
                    <td style="width: 80%">
                        <asp:Label ID="Label_User" CssClass="menuleft_small" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%">
                        Nội dung:
                    </td>
                    <td style="width: 80%">
                        <asp:Label ID="Label_Content" CssClass="menuleft_small" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%">
                        Ngày viết:
                    </td>
                    <td style="width: 80%">
                        <asp:Label ID="Label_DateCreate" CssClass="menuleft_small" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="Button_OK" runat="server" CssClass="button" Text="Xóa Status" 
                            onclick="Button_OK_Click" OnClientClick="return confirm('Bạn có chắn chắn muốn xóa')" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="title">
            <h5>
                Danh sách lời bình
            </h5>
        </div>
        <div class="table">
            <telerik:RadGrid ID="RadGrid2" runat="server" AllowSorting="True" GridLines="None"
                AllowPaging="True" OnPreRender="RadGrid2_PreRender" OnItemCommand="RadGrid2_iTemcommand"
                AutoGenerateColumns="False" Skin="Office2007">
                <MasterTableView NoMasterRecordsText="Không có kết quả">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="comment_id" DataType="System.Int32" HeaderText="CommentID"
                            UniqueName="comment_id" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="username" HeaderText="Người viết" UniqueName="username">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="text" HeaderText="Nội dung" UniqueName="text">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="created_date" HeaderText="Ngày viết" UniqueName="created_date"
                            DataType="System.DateTime" DataFormatString="{0:dd/MM/yyyy}">
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn Text="Xóa" UniqueName="Xoa" CommandName="Xoa" ConfirmText="Bạn có chắc chắn muốn xóa?"
                            ImageUrl="~/Files/images/delete.gif" HeaderImageUrl="~/Files/images/delete.gif">
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
            </telerik:RadGrid>
        </div>
    </asp:Panel>
</div>
